home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac 1
/
Ian and Stuart's One (Australia).iso
/
Australasian Legends
/
Commercial
/
Rainbow Hill
/
MacDOS™ 2.0.0
/
batches
/
mmore.bat
< prev
next >
Wrap
DOS Batch File
|
1993-07-30
|
883b
|
32 lines
@echo off
! this is a simple program that lets you execute the MORE command with a wildcarded
! filename.
! Just type MMORE name to list the text file[s] identified by 'name'
!
! If you want to skip the rest of a file after the first page and continue with
! the next file, type cmd-period or cntl-C and then reply 'N' when asked whether
! you want to terminate the batch job.
!
! check that there is a parameter
if not "%1 " == " " goto CHECKED_LBL
echo MMORE requires a parameter
echo.
goto DONE_LBL
:CHECKED_LBL
! the next line is needed to skip files which are not of type 'TEXT'
! without executing the PAUSE
onerror CONTINUE_LBL
for %filename in (%1) do begin
more < %filename%
echo -------------------------- "%filename%" completed ----------------------
pause
:CONTINUE_LBL
next filename
! let's clean up the environment
set filename=
:DONE_LBL